<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const hd = ['hdcms', 'houdunren'];
      for (let [k, v] of hd.entries()) {
        console.log(k, v);
      }

      for (let [k, v] of Object.entries(hd)) {
        console.log(k, v);
      }

      let user = {
        name: 'zs',
        data: [1, 2, 3],
      };
      // for (let [k, v] of user.entries()) {
      //   console.log(k, v);
      // }
      for (let [k, v] of Object.entries(user)) {
        console.log(k, v);
      }

      let set = new Set([1, 2, 3]);
      console.log(set);
      for (let value of Object.entries(set)) {
        console.log(value);
      }
    </script>
  </body>
</html>
